﻿using YR.Framework.Core;
using YR.Framework.Freesql;

namespace SingleWpfProject
{
    /// <summary>
    /// 项目新增Dto
    /// </summary>
    public class ProjectAddDto : BaseCreateDto<long>
    {
        /// <summary>
        /// 项目名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 项目描述
        /// </summary>
        public string Desc { get; set; }
    }

    /// <summary>
    /// 项目删除Dto
    /// </summary>
    public class ProjectDeleteDto : BaseDeleteDto<long> { }

    /// <summary>
    /// 项目修改Dto
    /// </summary>
    public class ProjectUpdateDto : BaseUpdateDto<long>
    {
        /// <summary>
        /// 项目描述
        /// </summary>
        public string Desc { get; set; }
    }

    /// <summary>
    /// 分页查询Dto
    /// </summary>
    public class ProjectPageQueryDto : YRPageRequest
    {
        /// <summary>
        /// 项目名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 项目描述
        /// </summary>
        public string Desc { get; set; }
    }

    /// <summary>
    /// 分页查询结果DTO
    /// </summary>
    public class ProjectPageQueryResultDto : BaseCreateAndUpdateDto<long>
    {
        /// <summary>
        /// 项目名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 项目描述
        /// </summary>
        public string Desc { get; set; }
    }
}
